data "terraform_remote_state" "vpc" {
  backend = "remote"
  config = {
    hostname : "baidu.jfrog.io"
    organization : "baidu-hub-terraform-state-dev"
    workspaces = {
      name : "ap-southeast-3-vpc-dev"
    }
  }
}

data "terraform_remote_state" "subnet" {
  backend = "remote"
  config = {
    hostname : "baidu.jfrog.io"
    organization : "baidu-hub-terraform-state-dev"
    workspaces = {
      name : "ap-southeast-3-subnet-dev"
    }
  }
}

data "terraform_remote_state" "vsg" {
  backend = "remote"
  config = {
    hostname : "baidu.jfrog.io"
    organization : "baidu-hub-terraform-state-dev"
    workspaces = {
      name : "ap-southeast-3-vsg-dev"
    }
  }
}

data "huaweicloud_dds_flavors" "flavor_1c4g" {
  engine_name = "DDS-Community"
  vcpus       = 1
  type        = "replica"
  memory      = 4
}

data "huaweicloud_dds_flavors" "flavor_2c4g" {
  engine_name = "DDS-Community"
  vcpus       = 2
  type        = "replica"
  memory      = 4
}

data "huaweicloud_dds_flavors" "flavor_4c8g" {
  engine_name = "DDS-Community"
  vcpus       = 4
  type        = "replica"
  memory      = 8
}

data "huaweicloud_dds_flavors" "flavor_4c16g" {
  engine_name = "DDS-Community"
  vcpus       = 4
  type        = "replica"
  memory      = 16
}